package com.valsong.sandbox.mock;

import com.alibaba.jvm.sandbox.api.listener.ext.Advice;


/**
 * Mock过滤器
 *
 * @author Val Song
 */
public interface MockFilter {

    /**
     * 是否需要mock
     *
     * @param advice     行为通知
     * @param mockConfig mock方法匹配规则
     * @return 是否需要mock
     */
    boolean shouldMock(Advice advice, MockConfig mockConfig);

}
